/* 
 * File:   Question.h
 * Author: eduardo
 *
 * Created on 6 de diciembre de 2012, 17:53
 */

#ifndef QUESTION_H
#define	QUESTION_H

#include <iostream>
#include <string>
#include <cstring>
#include <list>
#include <set>
#include <map>
#include <ctype.h>
#include <math.h>
#include "DocOccurrence.h"
#include "RCons.h"
#include "XML.h"
using namespace std;

class Question {
public:
    Question();
    ~Question();

    string similarQuestion(const string& document);
    vector<InfoDoc>* makeQuestion(const string& q, bool checked);

private:
    void takeTerms();
    void addTerms(pair<string, float> p);

    string _question;
    vector< pair<string, float> > _terms;
    int _j;

    set<int> _documents;
    int _totalDocs;
    list< pair<int, double> > _docSem;

};

#endif	/* QUESTION_H */ 

